package com.evil.common.rocketmq.constant;

import com.evil.common.core.constant.AppConstant;

/**
 * 队列 常量配置
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public interface MQConstant extends AppConstant {

    /**
     * 队列 最大重试次数
     */
    int MQ_MAX_RE_CONSUME_TIMES = 3;

    /**
     * 应用机器人 队列key
     */
    String APPLICATION_ROBOT_MQ_KEY = SERVICE_NAME_PREFIX + "application-robot";
    /**
     * 应用机器人 队列group
     */
    String APPLICATION_ROBOT_CONSUMER_GROUP = APPLICATION_ROBOT_MQ_KEY + "-consumer-1";

    /**
     * 导入应用订单 队列key
     */
    String IMPORT_APPLICATION_ORDER_MQ_KEY = SERVICE_NAME_PREFIX + "import-application-order";
    /**
     * 导入应用订单 队列group
     */
    String IMPORT_APPLICATION_ORDER_CONSUMER_GROUP = IMPORT_APPLICATION_ORDER_MQ_KEY + "-consumer-1";

    /**
     * 导出应用订单 队列key
     */
    String EXPORT_APPLICATION_ORDER_MQ_KEY = SERVICE_NAME_PREFIX + "export-application-order";
    /**
     * 导出应用订单 队列group
     */
    String EXPORT_APPLICATION_ORDER_CONSUMER_GROUP = EXPORT_APPLICATION_ORDER_MQ_KEY + "-consumer-1";

    /**
     * 刷新搜索引擎订单 队列key
     */
    String REFRESH_ES_ORDER_MQ_KEY = SERVICE_NAME_PREFIX + "refresh-es-order";
    /**
     * 刷新搜索引擎订单 队列group
     */
    String REFRESH_ES_ORDER_CONSUMER_GROUP = REFRESH_ES_ORDER_MQ_KEY + "-consumer-1";
}
